package myzf.cloud;

import cn.myzf.module.instance.InstanceConfig;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @package myzf.cloud
 * @Date Created in 2020/3/8 20:32
 * @Author myzf
 */
public class InstanceConfigImpl implements InstanceConfig {



    @Autowired
    RegisterConfigProperties registerConfigProperties;

    @Override
    public String getInstanceName() {
        return registerConfigProperties.getHostname();
    }

    @Override
    public String getRegisterUrl() {
        return registerConfigProperties.getRegisterUrl();
    }

    @Override
    public long getExpelTimerMs() {
        return registerConfigProperties.getExpelTimerMs();
    }
}
